#ifndef LUTCONTROLLER_H
#define LUTCONTROLLER_H

#include <QObject>
#include "UserList.h"

class MainWindow;

class LutController : public QObject
{
    Q_OBJECT

public:
	static LutController* getInstance();

	int myId();
	QString getNameFromId(int id);
	void sendMsg(QString str);
	void sendPrivateMsg(int to, QString str);

	bool getShowTime();

	UserList* getUsers();
	void startApp();


private:
	explicit LutController();


	MainWindow *window;
	UserList *users;

	static LutController *instance;

signals:
	void quitMe();
public slots:
	void onQuitReq();
};

//extern static LutController *LutController::instance;

#endif // LUTCONTROLLER_H
